<?php include("../../includes/includes.php"); ?>
<?php
$loggedInTeam = getLoggedInTeam();
$userSettings = getUserSettings($loggedInTeam->coachName, $loggedInTeam->leagueId);
$maxPerPage = $userSettings->getSettingValue(SettingType::TradesPerPage);
connect($config);
$result = getTradeHTML($loggedInTeam, 1, 1, $maxPerPage);
mysql_close();
?>

<script>
parent.document.getElementById("tradeDiv").innerHTML = "<?echo $result?>";
parent.document.getElementById("saveTradeHTML").value = "<?echo $result?>";
</script>
